@extends('layouts.app')
{{--@include('package.sidebar')--}}
@section('content')
    <div class="content" style="overflow:auto">
        <div class="row custom-invoice" style="min-width: 1000px">
            @can('package-explosive')
            <a class="btn btn-primary btn-ms" href="{{ route('admin.package.explosive.create') }}"><i class="fa fa-chain"></i> 添加爆款</a>
            @endcan
            <br />
            <br />
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th>套系名</th>
                    <th>排序权重</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($data as $item)
                    <tr>
                        <td>{{ $item->name }}</td>
                        <td>{{ $item->sort }}</td>
                        <td>
                            @can('package-explosive')
                            <a class="btn btn-danger btn-xs" data-method="delete" href="{{ route('admin.package.explosive.delete', ['id' => $item->id]) }}"><i class="fa fa-chain-broken"></i> 移除</a>
                            @endcan
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
            {{ $data->links() }}
        </div>
    </div>
@endsection

